﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace Liang.DataBase.Model.Entity
{
    [Serializable] 
    public class DbBase
    {
        public DbBase() 
        {
            createUser = "admin";
            createTime = DateTime.Now;
        }

        /// <summary>
        /// 创建人
        /// </summary>
        public string createUser { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createTime { get; set;  }

        /// <summary>
        /// 用于控制并发
        /// </summary>
        public byte[] rowVersion { get; set; }
    }
}
